package com.liuhuxiang.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动类
 * 使用restTemplate方式调用
 *
 * @author liuhuxiang
 * @version: OrderSeataApplication.java, 2023年03月09日 下午3:34 liuhuxiang  Exp $
 */
@SpringBootApplication
@EnableTransactionManagement     // 开启本地事务@Transactional
//使用Feign调用，别忘了这个注解
@EnableFeignClients
public class AlibabaOrderSeataApplication {

    public static void main(String[] args) {
        SpringApplication.run(AlibabaOrderSeataApplication.class,args);
    }


}
